Skip to content

ci(release): reconstruire la version 1.0.4 avec un TLS sûr - #41

Merged
ElouenGinat merged 1 commit into
mainfrom
chore/release-1.0.4-securisee
Nov 6, 2026
Merged

ElouenGinat merged 1 commit into
mainfrom
chore/release-1.0.4-securisee

Conversation

@ElouenGinat

@ElouenGinat ElouenGinat commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Rebuild 1.0.3 as 1.0.4 with unchanged application code; exclude PR fix: gérer les unités et illustrer le binning adaptatif #40.
  • Use standard GitHub-hosted images, uv-managed Python, uv 0.13.7, scikit-build-core >=1.1.2, and the official cibuildwheel 4.3.4 / PyPI publishing actions. No custom images or certificate-store changes.
  • Pin all documentation jobs to Ubuntu 24.04.
  • Replace Python-version discovery with an explicit Python 3.11–3.15 test matrix; remove its script and tests.
  • Remove temporary certificate diagnostics and the ad-hoc certifi constraint. Existing CI logs and local dependency resolution both confirm certifi 2026.10.23.
  • Test the actual built wheels and disable dependency-cache restore for the recovery build.
  • Squash the release and review iterations into one commit.

Why

Rebuild following the emSign CA incident using corrected upstream tooling, without taking responsibility for GitHub image remediation. Address all nine pending review comments.

How to test

Local validation of the final tree:

  • All repository commit hooks and workflow/TOML assertions pass.
  • Build the wheel with uv 0.13.7 and scikit-build-core 1.1.2.
  • All 61 existing tests pass against the installed wheel on Linux / Python 3.12.
  • Confirm certifi 2026.10.23 resolves without the removed constraint.

The history rewrite preserves the tested tree exactly. Fresh hosted checks are required for commit 9befa36, including all six wheel platforms and Python 3.11–3.15.

Release gate

Independent approval is still required before merging or publishing. No PyPI release or production documentation deployment has been performed; both remain at 1.0.3.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-06 10:31 UTC

@ElouenGinat
ElouenGinat requested a review from popescu-v October 23, 2026 14:50
@ElouenGinat

Copy link
Copy Markdown
Collaborator Author

Ready for independent review (@popescu-v requested with the maintainer’s approval).

All checks now pass on 50369ab:

  • Python 3.11–3.15 tests, base installation, lint, and documentation.
  • Six platform wheel builds and tests of the actual installed wheel files.
  • Publisher certifi 2026.10.19 / sigstore 4.5.1 and effective CA-store checks against an immutable official image digest.

The new guards detected a stale publisher OS trust store and the compromised Windows root. Publishing now restricts trust to the patched bundle; Windows/macOS explicitly distrust the root, and Linux CA packages are refreshed. These were not bypassed to make CI green.

Downloaded and inspected all six CI wheels: version 1.0.4, Python >=3.11, the same platform targets and runtime dependencies as 1.0.3, and unchanged application sources (Windows CRLF checkout differences only). The docs preview also reports 1.0.4: https://khiopsml.github.io/khisto-python/pr-preview/pr-41/

Publication remains paused for the required approving review and merge. After approval: tag the reviewed commit, run fresh PyPI publishing and production-docs deployment, then verify file hashes, PEP 740 attestations, a fresh installation, and live documentation. Existing 1.0.3 artifacts and tag are unchanged; no compromise has been demonstrated.

@ElouenGinat

Copy link
Copy Markdown
Collaborator Author

Updated per the request to leave runner-image remediation to GitHub.

  • Removed the custom setup action, all certificate-store changes and CA environment overrides, and the newly added lockfile.
  • Returned to the original workflow shape and official setup/build/publish actions. Linux now explicitly uses the current official Ubuntu 26.04 labels; Apple Silicon uses macOS 26. No image is built or customized by this repository.
  • Added a read-only diagnostic step. It logs the assigned image and Python/pip bundle versions, checks a valid pypi.org TLS connection, then tests both published eMudhra chains. As selected by the maintainer, an accepted affected chain or inconclusive result blocks CI.
  • Eight offline diagnostic tests and all local repository hooks pass. Application/CMake sources, README and .gitignore match v1.0.3.

Current hosted-image results on 01a3db5: https://github.com/KhiopsML/khisto-python/actions/runs/40312581959

  • macOS Intel and macOS 26 ARM: diagnostics, wheel builds and wheel tests pass.
  • Ubuntu 26.04 (image 20261023.163.3 in the x64 jobs): Python default TLS still accepts the G3 test chain. The image system Python also has pip 25.1.1 / vendored certifi 2025.01.31. A setup-python 3.13 interpreter has patched pip, but its default CA store still accepts that chain.
  • Windows hosted images: patched pip bundle rejects both chains, but Python default TLS still accepts them. This is an actual TLS handshake result, not an inference from a root certificate being present, and does not claim that Windows native revocation-aware clients accept them.

The diagnostic is therefore intentionally blocking the affected jobs; no runner patch or warning-only bypass has been added. The release remains unpublished pending upstream image resolution and required independent review.

@ElouenGinat

Copy link
Copy Markdown
Collaborator Author

Simplification demandée : suppression du paramètre python-path et de id: python, désormais inutilisés. Le build utilise simplement pypa/cibuildwheel@v4.3.4, qui sélectionne son propre interpréteur hôte via son action officielle.

Le diagnostic existant est inchangé. Important : il teste le contexte TLS Python standard et le bundle pip, pas le comportement complet de pip avec truststore et la révocation native. Ses échecs ne prouvent donc pas que les correctifs de cibuildwheel sont inefficaces. Il reste bloquant conformément au choix précédent, mais cette limite doit être prise en compte dans l’interprétation des résultats.

Validation YAML et hooks du dépôt : OK.

Comment thread .github/workflows/ci.yaml Resolved
Comment thread .github/workflows/pack-pip.yaml Resolved
Comment thread .github/workflows/pack-pip.yaml Resolved
Comment thread .github/workflows/pack-pip.yaml Resolved
Comment thread .github/workflows/pack-pip.yaml Resolved
Comment thread scripts/diagnose-emudhra.py Resolved
Comment thread scripts/get-python-versions.py Resolved
@ElouenGinat
ElouenGinat requested a review from popescu-v October 30, 2026 08:17
Comment thread .github/workflows/docs.yaml Resolved
Comment thread .github/workflows/docs.yaml Resolved
Comment thread .github/workflows/docs.yaml Resolved
@ElouenGinat
ElouenGinat force-pushed the chore/release-1.0.4-securisee branch from c2af941 to a16ee7a Compare November 5, 2026 15:38
Comment thread .github/workflows/ci.yaml Resolved
Comment thread .github/workflows/ci.yaml Resolved
Comment thread scripts/get-python-versions.py Resolved
Comment thread tests/ci/test_python_versions.py Resolved
Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved

@popescu-v popescu-v left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check pending comments.

Reconstruire la version 1.0.3 sans modifier le code applicatif. Utiliser les outils de packaging corrigés, Python géré par uv et les images GitHub officielles. Tester Python 3.11 à 3.15 et les roues réellement construites.

Intégrer les retours de revue : figer les runners de documentation, supprimer la découverte dynamique et la contrainte certifi temporaire, et relever scikit-build-core.

Refs #41

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ElouenGinat
ElouenGinat force-pushed the chore/release-1.0.4-securisee branch from a16ee7a to 9befa36 Compare November 6, 2026 08:58
@ElouenGinat
ElouenGinat requested a review from popescu-v November 6, 2026 09:03

@popescu-v popescu-v left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ElouenGinat
ElouenGinat merged commit bf73505 into main Nov 6, 2026
18 checks passed
@ElouenGinat
ElouenGinat deleted the chore/release-1.0.4-securisee branch November 6, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants